Scroll to navigation

GLUTBITMAPSTRING(3) Library Functions Manual (local) GLUTBITMAPSTRING(3)

NAME

glutBitmapStringDraw a string of bitmapped characters

LIBRARY

OpenGLUT - bitmapfont

SYNOPSIS

#include <openglut.h>

void
glutBitmapString(void *font, const unsigned char *string);

PARAMETERS


font

A bitmapped font identifier.


string

A NUL-terminated ASCII string.

DESCRIPTION

Draw a


string

the current OpenGL raster position using a bitmapped

font.

The raster position is advanced by the width of the string.

The starting raster position is used as the left margin for multi-line strings. Each newline character repositions the raster position at the beginning of the next line.

Nothing is drawn, and the raster position is unaffected when either:
-


font

is not a valid OpenGLUT bitmap font
-

string

is an empty string or NULL pointer
- The current OpenGL raster position is invalid

SEE ALSO

glRasterPos(3) glutBitmapCharacter(3)